home *** CD-ROM | disk | FTP | other *** search
Unknown | 1992-11-17 | 4.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 3b 43 46 69 67 75 72 | 65 20 31 2d 31 09 50 72 |.;CFigur|e 1-1.Pr|
|00000010| 69 6e 63 69 70 61 6c 20 | 6d 65 74 68 6f 64 73 20 |incipal |methods |
|00000020| 6f 66 20 63 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |of commu|nication|
|00000030| 20 62 65 74 77 65 65 6e | 20 61 70 70 6c 69 63 61 | between| applica|
|00000040| 74 69 6f 6e 73 20 3b 46 | 69 67 75 72 65 20 31 2d |tions ;F|igure 1-|
|00000050| 32 09 53 68 61 72 69 6e | 67 20 64 61 74 61 20 77 |2.Sharin|g data w|
|00000060| 69 74 68 20 74 68 65 20 | 61 69 64 20 6f 66 20 74 |ith the |aid of t|
|00000070| 68 65 20 45 64 69 74 69 | 6f 6e 20 4d 61 6e 61 67 |he Editi|on Manag|
|00000080| 65 72 34 46 69 67 75 72 | 65 20 31 2d 33 09 41 20 |er4Figur|e 1-3.A |
|00000090| 70 75 62 6c 69 73 68 65 | 72 2c 20 61 6e 20 65 64 |publishe|r, an ed|
|000000a0| 69 74 69 6f 6e 2c 20 61 | 6e 64 20 61 20 73 75 62 |ition, a|nd a sub|
|000000b0| 73 63 72 69 62 65 72 37 | 46 69 67 75 72 65 20 31 |scriber7|Figure 1|
|000000c0| 2d 34 09 53 68 61 72 69 | 6e 67 20 64 79 6e 61 6d |-4.Shari|ng dynam|
|000000d0| 69 63 20 64 61 74 61 20 | 77 69 74 68 20 6f 74 68 |ic data |with oth|
|000000e0| 65 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 59 |er appli|cationsY|
|000000f0| 46 69 67 75 72 65 20 31 | 2d 35 09 53 65 6e 64 69 |Figure 1|-5.Sendi|
|00000100| 6e 67 20 61 6e 64 20 72 | 65 73 70 6f 6e 64 69 6e |ng and r|espondin|
|00000110| 67 20 74 6f 20 41 70 70 | 6c 65 20 65 76 65 6e 74 |g to App|le event|
|00000120| 73 20 77 69 74 68 20 74 | 68 65 20 61 69 64 20 6f |s with t|he aid o|
|00000130| 66 20 74 68 65 20 41 70 | 70 6c 65 20 45 76 65 6e |f the Ap|ple Even|
|00000140| 74 20 4d 61 6e 61 67 65 | 72 1b 46 69 67 75 72 65 |t Manage|r.Figure|
|00000150| 20 31 2d 36 09 41 20 53 | 65 74 20 44 61 74 61 20 | 1-6.A S|et Data |
|00000160| 65 76 65 6e 74 36 46 69 | 67 75 72 65 20 31 2d 37 |event6Fi|gure 1-7|
|00000170| 09 48 6f 77 20 61 20 73 | 63 72 69 70 74 69 6e 67 |.How a s|cripting|
|00000180| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 65 78 65 63 75 | compone|nt execu|
|00000190| 74 65 73 20 61 20 73 63 | 72 69 70 74 3d 46 69 67 |tes a sc|ript=Fig|
|000001a0| 75 72 65 20 31 2d 38 09 | 41 20 53 65 74 20 44 61 |ure 1-8.|A Set Da|
|000001b0| 74 61 20 65 76 65 6e 74 | 20 73 65 6e 74 20 64 75 |ta event| sent du|
|000001c0| 72 69 6e 67 20 73 63 72 | 69 70 74 20 65 78 65 63 |ring scr|ipt exec|
|000001d0| 75 74 69 6f 6e 20 20 20 | 20 20 3e 46 69 67 75 72 |ution | >Figur|
|000001e0| 65 20 31 2d 39 09 52 65 | 63 6f 72 64 69 6e 67 20 |e 1-9.Re|cording |
|000001f0| 75 73 65 72 20 61 63 74 | 69 6f 6e 73 20 69 6e 20 |user act|ions in |
|00000200| 61 20 66 61 63 74 6f 72 | 65 64 20 61 70 70 6c 69 |a factor|ed appli|
|00000210| 63 61 74 69 6f 6e 20 20 | 20 4b 46 69 67 75 72 65 |cation | KFigure|
|00000220| 20 31 2d 31 30 09 43 6f | 6e 74 72 6f 6c 6c 69 6e | 1-10.Co|ntrollin|
|00000230| 67 20 61 6e 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |g an app|lication|
|00000240| d5 73 20 6f 77 6e 20 62 | 65 68 61 76 69 6f 72 20 |.s own b|ehavior |
|00000250| 62 79 20 65 78 65 63 75 | 74 69 6e 67 20 61 20 73 |by execu|ting a s|
|00000260| 63 72 69 70 74 4c 46 69 | 67 75 72 65 20 31 2d 31 |criptLFi|gure 1-1|
|00000270| 31 09 50 6f 73 74 69 6e | 67 20 61 6e 20 69 6e 76 |1.Postin|g an inv|
|00000280| 6f 69 63 65 20 61 6e 64 | 20 75 70 64 61 74 69 6e |oice and| updatin|
|00000290| 67 20 61 20 64 61 74 61 | 62 61 73 65 20 62 79 20 |g a data|base by |
|000002a0| 65 78 65 63 75 74 69 6e | 67 20 61 20 73 63 72 69 |executin|g a scri|
|000002b0| 70 74 22 46 69 67 75 72 | 65 20 33 2d 31 09 41 6e |pt"Figur|e 3-1.An|
|000002c0| 20 4f 70 65 6e 20 44 6f | 63 75 6d 65 6e 74 73 20 | Open Do|cuments |
|000002d0| 65 76 65 6e 74 1c 46 69 | 67 75 72 65 20 33 2d 32 |event.Fi|gure 3-2|
|000002e0| 09 41 20 47 65 74 20 44 | 61 74 61 20 65 76 65 6e |.A Get D|ata even|
|000002f0| 74 20 4b 46 69 67 75 72 | 65 20 33 2d 33 09 4d 61 |t KFigur|e 3-3.Ma|
|00000300| 6a 6f 72 20 61 74 74 72 | 69 62 75 74 65 73 20 61 |jor attr|ibutes a|
|00000310| 6e 64 20 64 69 72 65 63 | 74 20 70 61 72 61 6d 65 |nd direc|t parame|
|00000320| 74 65 72 20 6f 66 20 61 | 6e 20 4f 70 65 6e 20 44 |ter of a|n Open D|
|00000330| 6f 63 75 6d 65 6e 74 73 | 20 65 76 65 6e 74 44 46 |ocuments| eventDF|
|00000340| 69 67 75 72 65 20 33 2d | 34 09 4d 61 6a 6f 72 20 |igure 3-|4.Major |
|00000350| 61 74 74 72 69 62 75 74 | 65 73 20 61 6e 64 20 64 |attribut|es and d|
|00000360| 69 72 65 63 74 20 70 61 | 72 61 6d 65 74 65 72 20 |irect pa|rameter |
|00000370| 6f 66 20 61 20 47 65 74 | 20 44 61 74 61 20 65 76 |of a Get| Data ev|
|00000380| 65 6e 74 51 46 69 67 75 | 72 65 20 33 2d 35 09 41 |entQFigu|re 3-5.A|
|00000390| 20 64 65 73 63 72 69 70 | 74 6f 72 20 72 65 63 6f | descrip|tor reco|
|000003a0| 72 64 20 77 68 6f 73 65 | 20 64 61 74 61 20 68 61 |rd whose| data ha|
|000003b0| 6e 64 6c 65 20 72 65 66 | 65 72 73 20 74 6f 20 61 |ndle ref|ers to a|
|000003c0| 6e 20 75 6e 74 65 72 6d | 69 6e 61 74 65 64 20 73 |n unterm|inated s|
|000003d0| 74 72 69 6e 67 4b 46 69 | 67 75 72 65 20 33 2d 36 |tringKFi|gure 3-6|
|000003e0| 09 41 20 64 65 73 63 72 | 69 70 74 6f 72 20 72 65 |.A descr|iptor re|
|000003f0| 63 6f 72 64 20 77 68 6f | 73 65 20 64 61 74 61 20 |cord who|se data |
|00000400| 68 61 6e 64 6c 65 20 72 | 65 66 65 72 73 20 74 6f |handle r|efers to|
|00000410| 20 65 76 65 6e 74 20 63 | 6c 61 73 73 20 64 61 74 | event c|lass dat|
|00000420| 61 6a 46 69 67 75 72 65 | 20 33 2d 37 09 41 20 6b |ajFigure| 3-7.A k|
|00000430| 65 79 77 6f 72 64 2d 73 | 70 65 63 69 66 69 65 64 |eyword-s|pecified|
|00000440| 20 64 65 73 63 72 69 70 | 74 6f 72 20 72 65 63 6f | descrip|tor reco|
|00000450| 72 64 20 66 6f 72 20 74 | 68 65 20 65 76 65 6e 74 |rd for t|he event|
|00000460| 20 63 6c 61 73 73 20 61 | 74 74 72 69 62 75 74 65 | class a|ttribute|
|00000470| 20 6f 66 20 61 6e 20 4f | 70 65 6e 20 44 6f 63 75 | of an O|pen Docu|
|00000480| 6d 65 6e 74 73 20 65 76 | 65 6e 74 20 32 46 69 67 |ments ev|ent 2Fig|
|00000490| 75 72 65 20 33 2d 38 09 | 41 20 64 65 73 63 72 69 |ure 3-8.|A descri|
|000004a0| 70 74 6f 72 20 6c 69 73 | 74 20 66 6f 72 20 61 20 |ptor lis|t for a |
|000004b0| 6c 69 73 74 20 6f 66 20 | 61 6c 69 61 73 65 73 39 |list of |aliases9|
|000004c0| 46 69 67 75 72 65 20 33 | 2d 39 09 44 61 74 61 20 |Figure 3|-9.Data |
|000004d0| 73 74 72 75 63 74 75 72 | 65 73 20 77 69 74 68 69 |structur|es withi|
|000004e0| 6e 20 61 6e 20 4f 70 65 | 6e 20 44 6f 63 75 6d 65 |n an Ope|n Docume|
|000004f0| 6e 74 73 20 65 76 65 6e | 74 3c 46 69 67 75 72 65 |nts even|t<Figure|
|00000500| 20 33 2d 31 30 09 41 63 | 63 65 70 74 69 6e 67 20 | 3-10.Ac|cepting |
|00000510| 61 6e 64 20 70 72 6f 63 | 65 73 73 69 6e 67 20 61 |and proc|essing a|
|00000520| 6e 20 4f 70 65 6e 20 44 | 6f 63 75 6d 65 6e 74 73 |n Open D|ocuments|
|00000530| 20 65 76 65 6e 74 53 46 | 69 67 75 72 65 20 33 2d | eventSF|igure 3-|
|00000540| 31 31 09 54 68 65 20 41 | 70 70 6c 65 20 45 76 65 |11.The A|pple Eve|
|00000550| 6e 74 20 4d 61 6e 61 67 | 65 72 20 63 61 6c 6c 69 |nt Manag|er calli|
|00000560| 6e 67 20 74 68 65 20 68 | 61 6e 64 6c 65 72 20 66 |ng the h|andler f|
|00000570| 6f 72 20 61 6e 20 4f 70 | 65 6e 20 44 6f 63 75 6d |or an Op|en Docum|
|00000580| 65 6e 74 73 20 65 76 65 | 6e 74 34 46 69 67 75 72 |ents eve|nt4Figur|
|00000590| 65 20 33 2d 31 32 09 52 | 65 73 70 6f 6e 64 69 6e |e 3-12.R|espondin|
|000005a0| 67 20 74 6f 20 61 6e 20 | 4f 70 65 6e 20 44 6f 63 |g to an |Open Doc|
|000005b0| 75 6d 65 6e 74 73 20 65 | 76 65 6e 74 20 20 20 3d |uments e|vent =|
|000005c0| 46 69 67 75 72 65 20 33 | 2d 31 33 09 44 61 74 61 |Figure 3|-13.Data|
|000005d0| 20 73 74 72 75 63 74 75 | 72 65 73 20 77 69 74 68 | structu|res with|
|000005e0| 69 6e 20 61 6e 20 6f 62 | 6a 65 63 74 20 73 70 65 |in an ob|ject spe|
|000005f0| 63 69 66 69 65 72 20 72 | 65 63 6f 72 64 3a 46 69 |cifier r|ecord:Fi|
|00000600| 67 75 72 65 20 33 2d 31 | 34 09 41 6e 20 6f 62 6a |gure 3-1|4.An obj|
|00000610| 65 63 74 20 73 70 65 63 | 69 66 69 65 72 20 72 65 |ect spec|ifier re|
|00000620| 63 6f 72 64 20 69 6e 20 | 61 20 47 65 74 20 44 61 |cord in |a Get Da|
|00000630| 74 61 20 65 76 65 6e 74 | 27 46 69 67 75 72 65 20 |ta event|'Figure |
|00000640| 33 2d 31 35 09 53 75 70 | 65 72 63 6c 61 73 73 65 |3-15.Sup|erclasse|
|00000650| 73 20 61 6e 64 20 73 75 | 62 63 6c 61 73 73 65 73 |s and su|bclasses|
|00000660| 4f 46 69 67 75 72 65 20 | 33 2d 31 36 09 54 68 65 |OFigure |3-16.The|
|00000670| 20 6f 62 6a 65 63 74 20 | 63 6c 61 73 73 20 69 6e | object |class in|
|00000680| 68 65 72 69 74 61 6e 63 | 65 20 68 69 65 72 61 72 |heritanc|e hierar|
|00000690| 63 68 79 20 66 6f 72 20 | 74 68 65 20 6f 62 6a 65 |chy for |the obje|
|000006a0| 63 74 20 63 6c 61 73 73 | 20 63 57 69 6e 64 6f 77 |ct class| cWindow|
|000006b0| 67 46 69 67 75 72 65 20 | 33 2d 31 37 09 41 6e 20 |gFigure |3-17.An |
|000006c0| 41 70 70 6c 65 20 65 76 | 65 6e 74 20 6f 62 6a 65 |Apple ev|ent obje|
|000006d0| 63 74 20 6f 66 20 63 6c | 61 73 73 20 63 57 6f 72 |ct of cl|ass cWor|
|000006e0| 64 20 63 6f 6e 74 61 69 | 6e 65 64 20 69 6e 20 61 |d contai|ned in a|
|000006f0| 6e 20 41 70 70 6c 65 20 | 65 76 65 6e 74 20 6f 62 |n Apple |event ob|
|00000700| 6a 65 63 74 20 6f 66 20 | 63 6c 61 73 73 20 63 50 |ject of |class cP|
|00000710| 61 72 61 67 72 61 70 68 | 42 46 69 67 75 72 65 20 |aragraph|BFigure |
|00000720| 34 2d 31 09 41 20 64 6f | 63 75 6d 65 6e 74 20 77 |4-1.A do|cument w|
|00000730| 69 74 68 20 61 20 62 75 | 74 74 6f 6e 20 74 68 61 |ith a bu|tton tha|
|00000740| 74 20 74 72 69 67 67 65 | 72 73 20 61 20 47 65 74 |t trigge|rs a Get|
|00000750| 20 44 61 74 61 20 65 76 | 65 6e 74 5f 46 69 67 75 | Data ev|ent_Figu|
|00000760| 72 65 20 34 2d 32 09 41 | 20 73 65 72 76 65 72 20 |re 4-2.A| server |
|00000770| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 64 69 73 70 |applicat|ion disp|
|00000780| 6c 61 79 69 6e 67 20 61 | 20 64 69 61 6c 6f 67 20 |laying a| dialog |
|00000790| 62 6f 78 20 74 68 61 74 | 20 72 65 71 75 65 73 74 |box that| request|
|000007a0| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 72 |s inform|ation fr|
|000007b0| 6f 6d 20 74 68 65 20 75 | 73 65 72 43 46 69 67 75 |om the u|serCFigu|
|000007c0| 72 65 20 34 2d 33 09 48 | 61 6e 64 6c 69 6e 67 20 |re 4-3.H|andling |
|000007d0| 75 73 65 72 20 69 6e 74 | 65 72 61 63 74 69 6f 6e |user int|eraction|
|000007e0| 20 77 69 74 68 20 74 68 | 65 20 6b 41 45 57 61 69 | with th|e kAEWai|
|000007f0| 74 52 65 70 6c 79 20 66 | 6c 61 67 20 73 65 74 54 |tReply f|lag setT|
|00000800| 46 69 67 75 72 65 20 34 | 2d 34 09 48 61 6e 64 6c |Figure 4|-4.Handl|
|00000810| 69 6e 67 20 75 73 65 72 | 20 69 6e 74 65 72 61 63 |ing user| interac|
|00000820| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 6b 41 |tion wit|h the kA|
|00000830| 45 57 61 69 74 52 65 70 | 6c 79 20 66 6c 61 67 20 |EWaitRep|ly flag |
|00000840| 73 65 74 20 28 73 65 65 | 20 46 69 67 75 72 65 20 |set (see| Figure |
|00000850| 34 2d 33 29 59 46 69 67 | 75 72 65 20 34 2d 35 09 |4-3)YFig|ure 4-5.|
|00000860| 48 61 6e 64 6c 69 6e 67 | 20 75 73 65 72 20 69 6e |Handling| user in|
|00000870| 74 65 72 61 63 74 69 6f | 6e 20 77 69 74 68 20 74 |teractio|n with t|
|00000880| 68 65 20 6b 41 45 51 75 | 65 75 65 52 65 70 6c 79 |he kAEQu|eueReply|
|00000890| 20 66 6c 61 67 20 73 65 | 74 20 28 73 65 65 20 46 | flag se|t (see F|
|000008a0| 69 67 75 72 65 20 34 2d | 33 29 20 20 20 20 49 46 |igure 4-|3) IF|
|000008b0| 69 67 75 72 65 20 36 2d | 31 09 52 65 73 6f 6c 76 |igure 6-|1.Resolv|
|000008c0| 69 6e 67 20 61 6e 20 6f | 62 6a 65 63 74 20 73 70 |ing an o|bject sp|
|000008d0| 65 63 69 66 69 65 72 20 | 72 65 63 6f 72 64 20 66 |ecifier |record f|
|000008e0| 6f 72 20 61 20 74 61 62 | 6c 65 20 69 6e 20 61 20 |or a tab|le in a |
|000008f0| 64 6f 63 75 6d 65 6e 74 | 4e 46 69 67 75 72 65 20 |document|NFigure |
|00000900| 36 2d 32 09 4e 65 73 74 | 69 6e 67 20 6f 62 6a 65 |6-2.Nest|ing obje|
|00000910| 63 74 20 73 70 65 63 69 | 66 69 65 72 20 72 65 63 |ct speci|fier rec|
|00000920| 6f 72 64 73 20 74 68 61 | 74 20 73 70 65 63 69 66 |ords tha|t specif|
|00000930| 79 20 61 20 63 6f 6e 74 | 61 69 6e 65 72 20 68 69 |y a cont|ainer hi|
|00000940| 65 72 61 72 63 68 79 51 | 46 69 67 75 72 65 20 36 |erarchyQ|Figure 6|
|00000950| 2d 33 09 54 68 65 20 63 | 6f 6e 74 61 69 6e 65 72 |-3.The c|ontainer|
|00000960| 20 68 69 65 72 61 72 63 | 68 79 20 66 6f 72 20 74 | hierarc|hy for t|
|00000970| 68 65 20 66 69 72 73 74 | 20 72 6f 77 20 69 6e 20 |he first| row in |
|00000980| 61 20 74 61 62 6c 65 20 | 74 68 61 74 20 6d 65 65 |a table |that mee|
|00000990| 74 73 20 61 20 74 65 73 | 74 3e 46 69 67 75 72 65 |ts a tes|t>Figure|
|000009a0| 20 36 2d 34 09 41 20 6c | 6f 67 69 63 61 6c 20 64 | 6-4.A l|ogical d|
|000009b0| 65 73 63 72 69 70 74 6f | 72 20 72 65 63 6f 72 64 |escripto|r record|
|000009c0| 20 74 68 61 74 20 73 70 | 65 63 69 66 69 65 73 20 | that sp|ecifies |
|000009d0| 61 20 74 65 73 74 20 20 | 58 46 69 67 75 72 65 20 |a test |XFigure |
|000009e0| 36 2d 35 09 44 65 73 63 | 72 69 70 74 6f 72 20 72 |6-5.Desc|riptor r|
|000009f0| 65 63 6f 72 64 20 66 6f | 72 20 61 6e 20 61 70 70 |ecord fo|r an app|
|00000a00| 6c 69 63 61 74 69 6f 6e | 2d 64 65 66 69 6e 65 64 |lication|-defined|
|00000a10| 20 74 6f 6b 65 6e 20 74 | 68 61 74 20 69 64 65 6e | token t|hat iden|
|00000a20| 74 69 66 69 65 73 20 61 | 20 64 6f 63 75 6d 65 6e |tifies a| documen|
|00000a30| 74 6e 46 69 67 75 72 65 | 20 36 2d 36 09 44 65 73 |tnFigure| 6-6.Des|
|00000a40| 63 72 69 70 74 6f 72 20 | 72 65 63 6f 72 64 20 66 |criptor |record f|
|00000a50| 6f 72 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |or an ap|plicatio|
|00000a60| 6e 2d 64 65 66 69 6e 65 | 64 20 74 6f 6b 65 6e 20 |n-define|d token |
|00000a70| 74 68 61 74 20 69 64 65 | 6e 74 69 66 69 65 73 20 |that ide|ntifies |
|00000a80| 74 68 65 20 70 62 6f 75 | 6e 64 73 20 70 72 6f 70 |the pbou|nds prop|
|00000a90| 65 72 74 79 20 6f 66 20 | 61 20 77 69 6e 64 6f 77 |erty of |a window|
|00000aa0| 5d 46 69 67 75 72 65 20 | 36 2d 37 09 41 20 63 6f |]Figure |6-7.A co|
|00000ab0| 6e 74 61 69 6e 65 72 20 | 68 69 65 72 61 72 63 68 |ntainer |hierarch|
|00000ac0| 79 20 66 6f 72 20 61 20 | 73 65 72 76 65 72 20 61 |y for a |server a|
|00000ad0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 73 75 70 70 6f |pplicati|on suppo|
|00000ae0| 72 74 69 6e 67 20 77 68 | 6f 73 65 20 64 65 73 63 |rting wh|ose desc|
|00000af0| 72 69 70 74 6f 72 20 72 | 65 63 6f 72 64 73 3a 46 |riptor r|ecords:F|
|00000b00| 69 67 75 72 65 20 37 2d | 31 09 41 20 73 63 72 69 |igure 7-|1.A scri|
|00000b10| 70 74 20 77 69 6e 64 6f | 77 20 69 6e 20 74 68 65 |pt windo|w in the|
|00000b20| 20 54 6f 79 20 53 75 72 | 70 72 69 73 65 20 61 70 | Toy Sur|prise ap|
|00000b30| 70 6c 69 63 61 74 69 6f | 6e 3b 46 69 67 75 72 65 |plicatio|n;Figure|
|00000b40| 20 37 2d 32 09 48 6f 77 | 20 74 68 65 20 41 70 70 | 7-2.How| the App|
|00000b50| 6c 65 53 63 72 69 70 74 | 20 63 6f 6d 70 6f 6e 65 |leScript| compone|
|00000b60| 6e 74 20 65 78 65 63 75 | 74 65 73 20 61 20 73 63 |nt execu|tes a sc|
|00000b70| 72 69 70 74 20 50 46 69 | 67 75 72 65 20 37 2d 33 |ript PFi|gure 7-3|
|00000b80| 09 48 6f 77 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |.How an |applicat|
|00000b90| 69 6f 6e 20 75 73 65 73 | 20 74 68 65 20 41 70 70 |ion uses| the App|
|00000ba0| 6c 65 53 63 72 69 70 74 | 20 63 6f 6d 70 6f 6e 65 |leScript| compone|
|00000bb0| 6e 74 20 74 6f 20 65 78 | 65 63 75 74 65 20 61 20 |nt to ex|ecute a |
|00000bc0| 73 63 72 69 70 74 74 46 | 69 67 75 72 65 20 37 2d |scripttF|igure 7-|
|00000bd0| 34 09 52 6f 6c 65 20 6f | 66 20 74 68 65 20 5c 71 |4.Role o|f the \q|
|00000be0| 61 65 74 65 5c 71 20 61 | 6e 64 20 5c 71 61 65 75 |aete\q a|nd \qaeu|
|00000bf0| 74 5c 71 20 72 65 73 6f | 75 72 63 65 73 20 77 68 |t\q reso|urces wh|
|00000c00| 65 6e 20 74 68 65 20 41 | 70 70 6c 65 53 63 72 69 |en the A|ppleScri|
|00000c10| 70 74 20 63 6f 6d 70 6f | 6e 65 6e 74 20 63 6f 6d |pt compo|nent com|
|00000c20| 70 69 6c 65 73 20 61 6e | 64 20 65 78 65 63 75 74 |piles an|d execut|
|00000c30| 65 73 20 61 20 73 63 72 | 69 70 74 75 46 69 67 75 |es a scr|iptuFigu|
|00000c40| 72 65 20 37 2d 35 09 52 | 6f 6c 65 20 6f 66 20 74 |re 7-5.R|ole of t|
|00000c50| 68 65 20 5c 71 61 65 74 | 65 5c 71 20 61 6e 64 20 |he \qaet|e\q and |
|00000c60| 5c 71 61 65 75 74 5c 71 | 20 72 65 73 6f 75 72 63 |\qaeut\q| resourc|
|00000c70| 65 73 20 77 68 65 6e 20 | 74 68 65 20 41 70 70 6c |es when |the Appl|
|00000c80| 65 53 63 72 69 70 74 20 | 63 6f 6d 70 6f 6e 65 6e |eScript |componen|
|00000c90| 74 20 72 65 63 6f 72 64 | 73 20 61 6e 64 20 64 65 |t record|s and de|
|00000ca0| 63 6f 6d 70 69 6c 65 73 | 20 61 20 73 63 72 69 70 |compiles| a scrip|
|00000cb0| 74 47 46 69 67 75 72 65 | 20 37 2d 36 09 55 73 69 |tGFigure| 7-6.Usi|
|00000cc0| 6e 67 20 61 20 68 61 6e | 64 6c 65 72 20 69 6e 20 |ng a han|dler in |
|00000cd0| 61 20 73 63 72 69 70 74 | 20 63 6f 6e 74 65 78 74 |a script| context|
|00000ce0| 20 74 6f 20 68 61 6e 64 | 6c 65 20 61 6e 20 41 70 | to hand|le an Ap|
|00000cf0| 70 6c 65 20 65 76 65 6e | 74 34 46 69 67 75 72 65 |ple even|t4Figure|
|00000d00| 20 38 2d 31 09 53 74 72 | 75 63 74 75 72 65 20 6f | 8-1.Str|ucture o|
|00000d10| 66 20 61 6e 20 27 61 65 | 75 74 27 20 6f 72 20 27 |f an 'ae|ut' or '|
|00000d20| 61 65 74 65 27 20 72 65 | 73 6f 75 72 63 65 47 46 |aete' re|sourceGF|
|00000d30| 69 67 75 72 65 20 38 2d | 32 09 53 74 72 75 63 74 |igure 8-|2.Struct|
|00000d40| 75 72 65 20 6f 66 20 74 | 68 65 20 68 65 61 64 65 |ure of t|he heade|
|00000d50| 72 20 64 61 74 61 20 69 | 6e 20 61 6e 20 27 61 65 |r data i|n an 'ae|
|00000d60| 75 74 27 20 6f 72 20 27 | 61 65 74 65 27 20 72 65 |ut' or '|aete' re|
|00000d70| 73 6f 75 72 63 65 42 46 | 69 67 75 72 65 20 38 2d |sourceBF|igure 8-|
|00000d80| 33 09 53 74 72 75 63 74 | 75 72 65 20 6f 66 20 73 |3.Struct|ure of s|
|00000d90| 75 69 74 65 20 64 61 74 | 61 20 69 6e 20 61 6e 20 |uite dat|a in an |
|00000da0| 27 61 65 75 74 27 20 6f | 72 20 27 61 65 74 65 27 |'aeut' o|r 'aete'|
|00000db0| 20 72 65 73 6f 75 72 63 | 65 42 46 69 67 75 72 65 | resourc|eBFigure|
|00000dc0| 20 38 2d 34 09 53 74 72 | 75 63 74 75 72 65 20 6f | 8-4.Str|ucture o|
|00000dd0| 66 20 65 76 65 6e 74 20 | 64 61 74 61 20 69 6e 20 |f event |data in |
|00000de0| 61 6e 20 27 61 65 75 74 | 27 20 6f 72 20 27 61 65 |an 'aeut|' or 'ae|
|00000df0| 74 65 27 20 72 65 73 6f | 75 72 63 65 51 46 69 67 |te' reso|urceQFig|
|00000e00| 75 72 65 20 38 2d 35 09 | 53 74 72 75 63 74 75 72 |ure 8-5.|Structur|
|00000e10| 65 20 6f 66 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |e of add|itional |
|00000e20| 70 61 72 61 6d 65 74 65 | 72 20 64 61 74 61 20 69 |paramete|r data i|
|00000e30| 6e 20 61 6e 20 27 61 65 | 75 74 27 20 6f 72 20 27 |n an 'ae|ut' or '|
|00000e40| 61 65 74 65 27 20 72 65 | 73 6f 75 72 63 65 4b 46 |aete' re|sourceKF|
|00000e50| 69 67 75 72 65 20 38 2d | 36 09 53 74 72 75 63 74 |igure 8-|6.Struct|
|00000e60| 75 72 65 20 6f 66 20 6f | 62 6a 65 63 74 20 63 6c |ure of o|bject cl|
|00000e70| 61 73 73 20 64 61 74 61 | 20 69 6e 20 61 6e 20 27 |ass data| in an '|
|00000e80| 61 65 75 74 27 20 6f 72 | 20 27 61 65 74 65 27 20 |aeut' or| 'aete' |
|00000e90| 72 65 73 6f 75 72 63 65 | 2e 20 46 46 69 67 75 72 |resource|. FFigur|
|00000ea0| 65 20 38 2d 37 09 53 74 | 72 75 63 74 75 72 65 20 |e 8-7.St|ructure |
|00000eb0| 6f 66 20 70 72 6f 70 65 | 72 74 79 20 64 61 74 61 |of prope|rty data|
|00000ec0| 20 69 6e 20 61 6e 20 27 | 61 65 75 74 27 20 6f 72 | in an '|aeut' or|
|00000ed0| 20 27 61 65 74 65 27 20 | 72 65 73 6f 75 72 63 65 | 'aete' |resource|
|00000ee0| 2e 4b 46 69 67 75 72 65 | 20 38 2d 38 09 53 74 72 |.KFigure| 8-8.Str|
|00000ef0| 75 63 74 75 72 65 20 6f | 66 20 65 6c 65 6d 65 6e |ucture o|f elemen|
|00000f00| 74 20 63 6c 61 73 73 20 | 64 61 74 61 20 69 6e 20 |t class |data in |
|00000f10| 61 6e 20 27 61 65 75 74 | 27 20 6f 72 20 27 61 65 |an 'aeut|' or 'ae|
|00000f20| 74 65 27 20 72 65 73 6f | 75 72 63 65 2e 52 46 69 |te' reso|urce.RFi|
|00000f30| 67 75 72 65 20 38 2d 39 | 09 53 74 72 75 63 74 75 |gure 8-9|.Structu|
|00000f40| 72 65 20 6f 66 20 63 6f | 6d 70 61 72 69 73 6f 6e |re of co|mparison|
|00000f50| 20 6f 70 65 72 61 74 6f | 72 20 64 61 74 61 20 69 | operato|r data i|
|00000f60| 6e 20 61 6e 20 27 61 65 | 75 74 27 20 6f 72 20 27 |n an 'ae|ut' or '|
|00000f70| 61 65 74 65 27 20 72 65 | 73 6f 75 72 63 65 2e 20 |aete' re|source. |
|00000f80| 4a 46 69 67 75 72 65 20 | 38 2d 31 30 09 53 74 72 |JFigure |8-10.Str|
|00000f90| 75 63 74 75 72 65 20 6f | 66 20 65 6e 75 6d 65 72 |ucture o|f enumer|
|00000fa0| 61 74 69 6f 6e 20 64 61 | 74 61 20 69 6e 20 61 6e |ation da|ta in an|
|00000fb0| 20 27 61 65 75 74 27 20 | 6f 72 20 27 61 65 74 65 | 'aeut' |or 'aete|
|00000fc0| 27 20 72 65 73 6f 75 72 | 63 65 2e 49 46 69 67 75 |' resour|ce.IFigu|
|00000fd0| 72 65 20 38 2d 31 31 09 | 53 74 72 75 63 74 75 72 |re 8-11.|Structur|
|00000fe0| 65 20 6f 66 20 65 6e 75 | 6d 65 72 61 74 6f 72 20 |e of enu|merator |
|00000ff0| 64 61 74 61 20 69 6e 20 | 61 6e 20 27 61 65 75 74 |data in |an 'aeut|
|00001000| 27 20 6f 72 20 27 61 65 | 74 65 27 20 72 65 73 6f |' or 'ae|te' reso|
|00001010| 75 72 63 65 2e 30 46 69 | 67 75 72 65 20 31 30 2d |urce.0Fi|gure 10-|
|00001020| 31 09 41 20 67 65 6e 65 | 72 69 63 20 73 74 6f 72 |1.A gene|ric stor|
|00001030| 61 67 65 20 64 65 73 63 | 72 69 70 74 6f 72 20 72 |age desc|riptor r|
|00001040| 65 63 6f 72 64 20 3a 46 | 69 67 75 72 65 20 31 30 |ecord :F|igure 10|
|00001050| 2d 32 09 41 20 63 6f 6d | 70 6f 6e 65 6e 74 2d 73 |-2.A com|ponent-s|
|00001060| 70 65 63 69 66 69 63 20 | 73 74 6f 72 61 67 65 20 |pecific |storage |
|00001070| 64 65 73 63 72 69 70 74 | 6f 72 20 72 65 63 6f 72 |descript|or recor|
|00001080| 64 | |d | |
+--------+-------------------------+-------------------------+--------+--------+